package com.example.my_flea_street.service.impl;

import com.example.my_flea_street.Mapper.CategoryMapper;
import com.example.my_flea_street.bean.Info;
import com.example.my_flea_street.service.CategoryService;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value = "categoryService")
public class CategoryServiceImpl implements CategoryService {

    @Resource
    CategoryMapper mapper;

    @Override
    public Page<Info> getInfo(int category) {
        return mapper.getInfo(category);
    }
}
